import http from '../utils/http'

/**
 * @description 用户登录
 */
export const reqLogin = (data) => {
  return http.post('/customer/login',data)
}

/**
 * 根据分类获取商品列表
 * @param {*} category 
 */
export const reqListMerchandiseByCategory = (category) =>{
  return http.get(`/mall/merchandise/list/${category}`)
}

export const reqGetCategoryInfo = () =>{
  return http.get('/mall/category')
}
